def store = ''
10.times{
    store += 'x'
}
println store

store = ''
1.upto(5){each ->
    store += each
}
println store

store = ''
2.downto(-3){each ->
    store += each + ' '
}
println store

store = ''
0.step(0.5, 0.1){each ->
    store += each + ' '
}
println store